Skip to content

fix: fail early when Git Bash is missing - #430

Merged
7Sageer merged 5 commits into
MoonshotAI:mainfrom
7Sageer:docs/windows-git-bash-prereq
Jun 4, 2026
Merged

fix: fail early when Git Bash is missing#430
7Sageer merged 5 commits into
MoonshotAI:mainfrom
7Sageer:docs/windows-git-bash-prereq

Conversation

@7Sageer

@7Sageer 7Sageer commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. This fixes a Windows startup failure path found while testing the Git Bash prerequisite.

Problem

On Windows, Kimi Code requires Git Bash. Before this change, CLI startup did not explicitly await the local runtime environment probe, so a missing Git Bash install could fail later instead of exiting cleanly at startup.

What changed

Added a core runtime environment check, exposed it through the SDK harness, and call it from both shell and print CLI startup before config/session initialization continues. Session creation and resume now use the same lazy Kaos initializer, and tests cover early short-circuiting in both startup modes.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dee8790

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@moonshot-ai/agent-core Patch
@moonshot-ai/kimi-code-sdk Patch
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

…sh-prereq

# Conflicts:
#	packages/agent-core/src/rpc/core-api.ts
@pkg-pr-new

pkg-pr-new Bot commented Jun 4, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@dee8790
npx https://pkg.pr.new/@moonshot-ai/kimi-code@dee8790

commit: dee8790

@7Sageer
7Sageer merged commit be0da5f into MoonshotAI:main Jun 4, 2026
8 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 4, 2026
@7Sageer 7Sageer mentioned this pull request Jun 4, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant